import axios from '@/util'; 

import type {
} from './typings';



/**
 *  POST /api/payment/createOrder
 */
export async function post_api_payment_createorder (
  data: {
    /**  */
    currency?: string;
    /**  */
    amount?: number;
  },
  options?: Record<string, any>,
): Promise<any> {
  return axios({
    method: 'POST',
    url: `/api/payment/createOrder`,
    data: {
      ...data,
    },
    ...(options || {}),
  })
}

/**
 *  GET /api/payment/order/{orderId}
 */
export async function get_api_payment_order__orderid_ (
  pathVars: {
    /**  */
    orderId: any;
  },
  options?: Record<string, any>,
): Promise<any> {
  return axios({
    method: 'GET',
    url: `/api/payment/order/${pathVars.orderId}`,
    ...(options || {}),
  })
}

/**
 *  POST /api/payment/capture/{orderId}
 */
export async function post_api_payment_capture__orderid_ (
  pathVars: {
    /**  */
    orderId: any;
  },
  options?: Record<string, any>,
): Promise<any> {
  return axios({
    method: 'POST',
    url: `/api/payment/capture/${pathVars.orderId}`,
    ...(options || {}),
  })
}
